package com.android.duininsuoai.adapt;

import android.widget.ImageView;

import com.android.duininsuoai.model.group.SortNationData;
import com.android.duininsuoai.utils.ObjectUtils;
import com.android.duininsuoai.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2016/8/10.
 */
public class  MainNationAdapt extends BaseQuickAdapter<SortNationData.Nationdata, BaseViewHolder> {


    public MainNationAdapt(int layoutResId, List<SortNationData.Nationdata> data) {
        super(layoutResId, data);


    }

    @Override
    protected void convert(BaseViewHolder holder, SortNationData.Nationdata nationdata) {

        holder.setVisible(R.id.ll_nation, true);
        holder.setText(R.id.item_list_main_haitao_city, nationdata.getCatname());
        ObjectUtils.photo2(mContext, nationdata.getThumb(), (ImageView) holder.getView(R.id.item_list_sort_dapai_img));
    }


}
